package hxs.events.flash.utils;
import flash.display.Stage;
import flash.utils.Timer;
import flash.events.TimerEvent;
import hxs.extras.FlashEventsStore;
import hxs.extras.FlashSignal;
import hxs.events.flash.events.EventDispatcherEvents;
/**
 * ...
 * @author Tony Polinelli
 */
import flash.display.DisplayObject;
import flash.events.Event;

class TimerEvents extends EventDispatcherEvents
{
	public function new(target:Timer) 
	{
		super(target);
	}
	
	public static function getEvents(target:Stage):TimerEvents
	{
		return cast FlashEventsStore.getEvents(target);
	}
	
	/**/

	public var timer(getTimer, never):FlashSignal<TimerEvent>;
	private function getTimer():FlashSignal<TimerEvent>
	{
		return cast getNativeSignal(TimerEvent.TIMER);
	}
	
	public var timerComplete(getTimerComplete, never):FlashSignal<TimerEvent>;
	private function getTimerComplete():FlashSignal<TimerEvent>
	{
		return cast getNativeSignal(TimerEvent.TIMER_COMPLETE);
	}
	
}